﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Workflow.Domain.Model;

namespace WorkflowCore.Domain.Entities
{
    /// <summary>
    /// 表单模板实体
    /// </summary>
    [Table("FormTemplate")]
    public class FormTemplateModel:BaseEntity
    {
        /// <summary>
        /// 流程设计模板外键<see cref="WorkflowDefinitionModel"/>
        /// </summary>
        public long DefinitionModelId { get; set; }
        /// <summary>
        /// 表单字段内容
        /// </summary>
        [Column(TypeName ="json")]
        public string FormBodyJson { get; set; }
    }
    /// <summary>
    /// 表单详细信息
    /// </summary>
    public class FormDetail
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 字段描述
        /// </summary>
        public string FieldDesc { get; set; }
        /// <summary>
        /// 字段类型
        /// </summary>
        public string Fieldtype { get; set; } 
        /// <summary>
        /// 字段控件
        /// </summary>
        public string FieldControl { get; set; } 
        /// <summary>
        /// 字段默认值
        /// </summary>
        public string FieldDefaultValue { get; set; }
    }
}
